package net.pm.core.service;

import java.util.List;

import net.pm.common.service.GenericServicer;
import net.pm.core.entities.db.Materiallog;

public interface MateriallogServicer extends GenericServicer<Materiallog, Long>{
	
	/**
	 * 根据物料id获取物料出入日志记录列表
	 * @param materialId
	 * @return
	 */
	List<Materiallog> findMateriallogByMaterialId(Long materialId);
	
	List<Materiallog> findMaterialogTop5ByProductId(Long productId);
	List<Materiallog> findMaterialogTop5ByCollarMaterialIds(List<Long> collarIds);
	List<Materiallog> findMaterialogByProductId(Long productId);
	List<Materiallog> findMaterialogByCollarMaterialIds(List<Long> collarIds);
	
}
